package forms

import (
//"gopkg.in/mgo.v2"
//	"gopkg.in/mgo.v2/bson"
"LiquidMeasurement/lib"
)

type LoginForm struct {
	UserName    string
	JobID		string	`valid:"Required;Msg(用户工号不能为空)"`
	Passwd		string	`valid:"Required;Msg(用户密码不能为空)"`
	VerifyCode	string
}


func (form *LoginForm)CheckValid()(b bool,Errors []lib.ERROR)  {
	valid := lib.Validation{}
	b, err_msg := valid.Valid(form)
	return b,err_msg
}



